<?php
//账号登录检查
$admin_id=is_cookie_login();
if(empty($admin_id)){
	header('location: /mobile/login');
	exit();
}

//检查账号状态
$adobj=new manager();
$adinfo=$adobj->admin_info('id,state');
if(empty($adinfo) || $adinfo['state']==0){
	del_cookie('admin');
	del_cookie('admin_info');
	header('location: /mobile/login');exit();
}
?>